﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc_PendingOrdersReport.ascx.cs"
    Inherits="Report_UserControl_uc_PendingOrdersReport" %>
<div style="height: 802px">
    <div class="TitlePage">
        PENDING ORDERS REPORT</div>
    <asp:Panel runat="server" ID="Panel1">
        <div style="text-align: left; width: 100%">
            <fieldset>
                <table width="100%">
                    <tr>
                        <td align="center">
                            <asp:Button ID="btnSearch" runat="server" CssClass="btn_admin" OnClick="btnSearch_Click"
                                Text="Tìm kiếm" />
                            &nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnXuat" runat="server" CssClass="btn_admin" OnClick="btnXuat_Click"
                                Text="Xuất Excel" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </asp:Panel>
    <div style="clear: both; height: 10px">
    </div>
    <div id="divUserList">
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="grdList" runat="server" AutoGenerateColumns="false" DataKeyNames="SONUM"
                    Width="100%" CssClass="grid" OnRowCommand="grdList_RowCommand" AllowPaging="True"
                    PageSize="20" OnRowEditing="grdList_RowEditing" OnPageIndexChanging="grdrList_PageIndexChanging"
                    AllowSorting="True" OnSorting="grdList_Sorting">
                    <Columns>
                        <asp:TemplateField HeaderText="Nhóm" SortExpression="GroupName">
                            <ItemTemplate>
                                <asp:Label ID="lblListing1" runat="server" Text='<%# Eval("GroupName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mã Khách hàng" SortExpression="CardCode">
                            <ItemTemplate>
                                <asp:Label ID="lblListing2" runat="server" Text='<%# Eval("CardCode") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tên Khách hàng">
                            <ItemTemplate>
                                <asp:Label ID="lblListing3" runat="server" Text='<%# Eval("CardName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tuyến" SortExpression="ROUTENAME">
                            <ItemTemplate>
                                <asp:Label ID="lblListing4" runat="server" Text='<%# Eval("ROUTENAME") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Số SO" ItemStyle-HorizontalAlign="Center" SortExpression="SONum">
                            <ItemTemplate>
                                <asp:Label ID="lblListing5" runat="server" Text='<%# Eval("SONum") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Số lượng SO" ItemStyle-HorizontalAlign="Center" SortExpression="TSL">
                            <ItemTemplate>
                                <asp:Label ID="lblListing6" runat="server" Text='<%# string.Format("{0:N0}", Eval("TSL"))%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="SL Pending Order" ItemStyle-HorizontalAlign="Center" SortExpression="TSLPO">
                            <ItemTemplate>
                                <asp:Label ID="lblListing7" runat="server" Text='<%# string.Format("{0:N0}",Eval("TSLPO")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle CssClass="pager" HorizontalAlign="Right" />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</div>
